local CommonOHOH = _G.CommonOHOH;
local M = CommonOHOH.class.new(script, CommonOHOH.files.BaseComponent());
local UIManager = _G.ClientOHOH.load.UIManager();
local BattleFailGui=UIManager:CreateUI("BattleFailGui",require(script.BattleFailGui))
local BattleWinGui=UIManager:CreateUI("BattleFailGui",require(script.BattleWinGui))


function M.new(self,...)
	return M(self,...);
end;


function M.ctor(self, parent)
	M.super.ctor(self, parent);

    self.parent.EndEvent:Connect(function(isWin)
        if isWin then
            BattleWinGui:Show()
        else
            BattleFailGui:Show()

        end
    end)
end;


function M.dtor(self)
	M.super.dtor(self);
end;


return M